<%@ include file="/WEB-INF/jsp/includes.jsp" %>

<%@page import="org.sevaapp.security.domain.User;"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>New User Screen</title>
	<style>
		.form-item { margin: 20px 0; }
		.form-label { font-weight: bold; }
		.form-error-field { background-color: #FFC; }
		.form-error-message { font-weight: normal; color: #900; }
	</style>
</head>
<body>

<%@ include file="/WEB-INF/jsp/toolbar.jsp" %>

<form:form name="frmAddUser" action="addUser.do" modelAttribute="user" commandName="user">

	<table>
    	<tr>
      		<td>
      			Login Id(User Name):
      		</td>
      		<td>
        		 <form:input path="loginId" cssErrorClass="form-error-field"/>
        		 <form:errors path="loginId" cssClass="form-error-message" />
      		</td>
    	</tr>
    	<tr>
    		<td>
        		Password:
      		</td>
      		<td>
        		 <form:input path="password" cssErrorClass="form-error-field"/>
        		 <form:errors path="password" cssClass="form-error-message" />
      		</td>
    	</tr>
    	<tr>
      		<td>
        		Full Name:
      		</td>
      		<td>
				<form:input path="userFullName"  cssErrorClass="form-error-field" />
        		<form:errors path="userFullName" cssClass="form-error-message" />
      		</td>
    	</tr>
    	<tr>
      		<td>
        		E-mail Address:
      		</td>
      		<td>
				<form:input path="emailAddress"  cssErrorClass="form-error-field" />
        		<form:errors path="emailAddress" cssClass="form-error-message" />
      		</td>
    	</tr>
    	<tr>
      		<td>
        		User Role:
      		</td>
      		<td>
				<form:select path="roles" items="${roles}" size="1" multiple="false" disabled="false" />
      		</td>
    	</tr>
		<tr><td>&nbsp;</td></tr>
		<tr>
			<td>
				<input name="submit" type="submit" value="Submit"/>
				&nbsp;&nbsp;
				<input name="reset" type="reset" value="Reset"/>
			</td>
		</tr>
    </table>

</form:form>
